"""
-----------------------------
   File Name:read_json
   Author:cwei
   date: 2023/7/28-15:34
-----------------------------
"""
import json


# 读取json文件
class ReadJson:

    @classmethod
    def read_config(cls, file):
        with open(file, 'r', encoding='utf-8') as fr:
            data = json.load(fr)
            print(data)

        list1 = []
        for i in data:
            temp = tuple(i.values())
            list1.append(temp)
        return list1

    pass


if __name__ == '__main__':
    print(ReadJson.read_config('add.json'))
